var Sprites = function(type,artist,behaviors){
	var DEFAULT_WIDTH = 10,
		DEFAULT_HEIGHT = 10,
		DEFAULT_OPACITY = 1;
	this.type = type;
	this.artist = artist;
	this.behaviors = []||behaviors;
	
	this.hOffset = 0;
	this.width = DEFAULT_WIDTH;
	this.height = DEFAULT_HEIGHT;
	this.opacity = DEFAULT_OPACITY;
	this.left = 0;
	this.top = 0;
	this.visible = true;
}
Sprite.prototype = {
	draw : function(context){
		context.save();
		context.globlAlpha = this.opacity;
		if(this.visible && this.artist){
			this.artist.draw(this,context);
		}
		context.restore();
	},
	undate : function(now,fps,context,lastFramTime){
		for(var i=0;i<this.behaviors.length;i++){
			this.behaviors[i].execute(this,
									now,
									fps,
									context,
									lastFramTime);
		}
	}
}


